const platformLayout = () => import('@/layout/platforms/free/index.vue')

const freeRoutes = [
  // 平台使用
  {
    path: '/free',
    component: platformLayout,
    name: '',
    meta: { title: '自由平台', roles: ['customer'] },
    children: [
      {
        path: '/free',
        name: 'free_index',
        component: () => import('@/views/platform/free/index.vue'),
        meta: { title: '控制台' }
      },
      {
        path: '/free/addon',
        name: 'free_addon',
        component: () => import('@/views/platform/free/addon.vue'),
        meta: { title: '应用管理' }
      },
      {
        path: '/free/setting',
        name: 'free_setting',
        component: () => import('@/views/platform/free/setting.vue'),
        meta: { title: '系统设置' }
      }
    ]
  }
]

export default freeRoutes
